package org.yan.stock.server.core;
import java.io.IOException;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.yan.stock.server.client.Client;
import org.yan.stock.server.client.ClientServiceFactory;

@SuppressWarnings("serial")
public class SpServlet extends HttpServlet {

    @Override
    public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {

    	Client client = new Client();
    	client.setAuthId(req.getParameter("devregid"));
    	client.setSenderId(req.getParameter("mail"));
        
        ClientServiceFactory.getClientService().remove(client);
    }
}

